import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 ProductGuide 分页列表
 */
export function getProductGuidePagination(data: any) {
  return axios.get(`${context}/productGuide/pagination`, { params: data })
}

/**
 * 获取 ProductGuide 所有数据
 */
export function getProductGuideAllList(data: any) {
  return axios.get(`${context}/productGuide/allList`, { params: data })
}

/**
 * 获取 ProductGuide 详情
 */
export function getProductGuideDetailById(id: any) {
  return axios.get(`${context}/productGuide/${id}`, { params: { id } })
}

/**
 * 新增 ProductGuide
 */
export function addProductGuide(data: any) {
  return axios.post(`${context}/productGuide`, data)
}

/**
 * 修改 ProductGuide
 */
export function updateProductGuide(data: any) {
  return axios.put(`${context}/productGuide`, data)
}

/**
 * 删除 ProductGuide
 */
export function batchRemoveProductGuide(data: any) {
  return axios.post(`${context}/productGuide/batchRemove`, data)
}
